package com.k2data.k2app.mapper;

import com.k2data.k2app.domain.EventCond;
import com.k2data.k2app.domain.po.EventDevice;
import com.k2data.k2app.domain.po.EventMaintenance;
import com.k2data.k2app.mybatis.mapper.K2Mapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author lidong9144@163.com 17-3-20.
 */
@Mapper
@Repository
public interface EventMaintenanceMapper extends K2Mapper<EventMaintenance> {

    /**
     * 抽象成相同的事件模型
     */
    List<EventDevice> selectList(EventMaintenance cond);

    List<EventMaintenance> selectTypeCount(EventCond cond);

}
